<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Page.aspx.cs" Inherits="Admin_Page" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Add/Edit Page</title>
    <link rel="stylesheet" href="../css/style-admin.css" media="screen,projection" type="text/css" />

    <script src="../js/tiny_mce/tiny_mce.js" language="javascript" type="text/javascript"></script>

    <script src="../js/prototype.js" language="javascript" type="text/javascript"></script>

    <script language="javascript" type="text/javascript" src="../js/admin/page.js"></script>

</head>
<body>
    <form id="frmAdminPage" runat="server">
        <table width="600px">
            <tr>
                <td colspan="2" align="center" valign="middle">
                    <h1>
                        Add/Edit Page</h1><a href="../" target="_blank">View Site</a>
                </td>
            </tr>
            <tr>
                <td style="width:150px" align="right">
                    Has Article:
                </td>
                <td style="width:450px">
                    <input id="txtHas_article" type="text" class="text" size="25" runat="server" />
                    Y / N.<input id="txtPage_Id" runat="server" type="hidden" /></td>
            </tr>
            <tr>
                <td style="width:150px" align="right">
                    Menu Title:
                </td>
                <td style="width:450px">
                    <input id="txtMenu_title" type="text" class="text" size="25" runat="server" />
                    0-100 Chars.</td>
            </tr>
            <tr>
                <td align="right">
                    Title:
                </td>
                <td>
                    <input id="txtTitle" type="text" class="text" size="25" runat="server" />
                    0-100 Chars.</td>
            </tr>
            <tr>
                <td align="right" valign="top">
                    Content:
                </td>
                <td valign="middle">
                    <div id="richtext" style="float: left; width: 450px; height: 300px; border: solid 1px #bebebe"
                        onclick="enableEdit('richtext');" runat="server">
                    </div>
                </td>
            </tr>
            <tr>
                <td align="right">
                    Date Added:
                </td>
                <td>
                    <input id="txtDate_Added" type="text" class="text" size="25" runat="server" />
                    Date field ( yyyy-MM-dd HH:mm:ss ).</td>
            </tr>
            <tr>
                <td colspan="2" align="center">
                    <br />
                    <input id="btnSubmit" type="button" value="Submit" onclick="enterValues();" style="font-size: 20px;
                        width: 126px; height: 45px" size="" />
                    <div id="loadermsg">
                    </div>
                </td>
            </tr>
        </table>
    </form>
</body>
</html>
